package cn.zhf.shop.mapper;

import cn.zhf.shop.entity.Refund;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;import java.util.List;
@Mapper
public interface RefundMapper {
    int deleteByPrimaryKey(@Param("id") String id, @Param("orderId") String orderId);

    int insert(Refund record);

    int insertSelective(Refund record);

    Refund selectByPrimaryKey(@Param("id") String id, @Param("orderId") String orderId);

    int updateByPrimaryKeySelective(Refund record);

    int updateByPrimaryKey(Refund record);

    int deleteByPrimaryKey(Integer id);

    Refund selectByPrimaryKey(Integer id);

    Refund selectByOrderId(@Param("orderId") String orderId);

    List<Refund> selectAll();

    List<Refund> selectByUserId(@Param("userId") String userId);

    List<Refund> selectByState(@Param("state") Integer state);

    List<Refund> selectByUserIdAndState(@Param("userId") String userId, @Param("state") Integer state);

    int changeRefundState(@Param("orderId") String orderId, @Param("state") Integer state);
}